]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
cleanup: Remove empty leading/trailing lines in blocks
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 13 Nov 2020 22:52:26 +0000 (23:52 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 16 Nov 2020 18:04:23 +0000 (18:04 +0000)
gjs added a new rule to its eslint ruleset that forbids "block padding",
so make sure we conform to that rule before syncing up the configuration.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1498

22 files changed:
js/dbusServices/screencast/screencastService.js
js/misc/history.js
js/misc/introspect.js
js/misc/jsParse.js
js/misc/smartcardManager.js
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/components/automountManager.js
js/ui/components/polkitAgent.js
js/ui/dialog.js
js/ui/kbdA11yDialog.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/messageList.js
js/ui/padOsd.js
js/ui/status/keyboard.js
js/ui/status/network.js
js/ui/status/thunderbolt.js
js/ui/switcherPopup.js
js/ui/userWidget.js
js/ui/windowManager.js
js/ui/workspaceSwitcherPopup.js

index e98089663effaf0af6b0dc235fde3a36a4f1d3b1..9ede9b541c3613c8384214f4df5637bb9b3b65fa 100644 (file)
@@ -383,7 +383,6 @@ var ScreencastService = class extends ServiceImplementation {
                         this._removeRecorder(sender);
                         invocation.return_value(GLib.Variant.new('(bs)', returnValue));
                     }
-
                 });
         } catch (error) {
             log(`Failed to start recorder: ${error.message}`);
@@ -441,7 +440,6 @@ var ScreencastService = class extends ServiceImplementation {
                         this._removeRecorder(sender);
                         invocation.return_value(GLib.Variant.new('(bs)', returnValue));
                     }
-
                 });
         } catch (error) {
             log(`Failed to start recorder: ${error.message}`);
index c82722c5a986c3b729f11368e9033af29b81e8f9..1fba770090f1eca18f3bf22f1156e1802eade851 100644 (file)
@@ -20,7 +20,6 @@ var HistoryManager = class {
             this._history = global.settings.get_strv(this._key);
             global.settings.connect(`changed::${this._key}`,
                                     this._historyChanged.bind(this));
-
         } else {
             this._history = [];
         }
@@ -72,7 +71,6 @@ var HistoryManager = class {
     addItem(input) {
         if (this._history.length == 0 ||
             this._history[this._history.length - 1] != input) {
-
             this._history = this._history.filter(entry => entry != input);
             this._history.push(input);
             this._save();
index bae7f637362c4216c0a5a374431696f20fdc027e..e46a7e8c59306d526e0c4a7a81db173fad9884fe 100644 (file)
@@ -170,7 +170,6 @@ var IntrospectService = class {
         for (let app of apps) {
             let windows = app.get_windows();
             for (let window of windows) {
-
                 if (!this._isEligibleWindow(window))
                     continue;
 
index c92465fc206fdd8a7f9bbf80a573b8bafb6b2fb5..c4e077f6265717653221053ee23cd92840709101 100644 (file)
@@ -201,7 +201,6 @@ function removeLiterals(str) {
 // Returns true if there is reason to think that eval(str)
 // will modify the global scope
 function isUnsafeExpression(str) {
-
     // Check for any sort of assignment
     // The strategy used is dumb: remove any quotes
     // or regexs and comparison operators and see if there is an '=' character.
index e1d0f1bce8d1ac7a4efb600a60fc259cc3d4ffda..d9b6ff47473174bbd5b14a5e0bf9e137c4d4763d 100644 (file)
@@ -111,6 +111,5 @@ var SmartcardManager = class {
 
         return true;
     }
-
 };
 Signals.addSignalMethods(SmartcardManager.prototype);
index 25683b55da48443a15171bcbfe3214861d10ac3e..5332d3b7c4a42711d3a4c5ef90d9b1a69f07090c 100644 (file)
@@ -907,7 +907,6 @@ class ThumbnailSwitcher extends SwitcherPopup.SwitcherList {
             } else {
                 this.addItem(box, null);
             }
-
         }
 
         this.connect('destroy', this._onDestroy.bind(this));
index ab4bb6c863df02943c298f9a2c9983613c426ed1..322aa3cd7a2993e3516783a63d8729af3a4251d1 100644 (file)
@@ -867,7 +867,6 @@ var PageManager = GObject.registerClass({
 
         global.settings.connect('changed::app-picker-layout',
             this._loadPages.bind(this));
-
     }
 
     _loadPages() {
index 1cb84a7ec52af0bc31e2b25e08c8b82e1d7fb4f3..b83bd22c6a643331a87a79a491c0bd841e6b2acd 100644 (file)
@@ -201,7 +201,6 @@ var AutomountManager = class {
                 e.message.includes('Failed to activate device: Incorrect passphrase') ||
                 // cryptsetup returns EINVAL in many cases, including wrong TCRYPT password/parameters
                 e.message.includes('Failed to load device\'s parameters: Invalid argument')) {
-
                 this._reaskPassword(volume);
             } else {
                 if (e.message.includes('Compiled against a version of libcryptsetup that does not support the VeraCrypt PIM setting')) {
index ae75f3c00fee44317041139e2bad026e4711d9e2..e8f3b30f43160bc4ba29c4f131c5f89255243e12 100644 (file)
@@ -238,7 +238,6 @@ var AuthenticationDialog = GObject.registerClass({
         /* Yay, all done */
         if (gainedAuthorization) {
             this._emitDone(false);
-
         } else {
             /* Unless we are showing an existing error message from the PAM
              * module (the PAM module could be reporting the authentication
index bb54ac0291192991679fe820f619d02769060523..4af154d6f70ab0ba35bc947047e721df80ca2587 100644 (file)
@@ -224,7 +224,6 @@ var MessageDialogContent = GObject.registerClass({
                 return GLib.SOURCE_REMOVE;
             });
         }
-
     }
 
     set title(title) {
index 3cf56b136269df3fc486ba6f2eb7d5ceb4568962..a45e02443d80688edc0ee9c85107b250e9bf2b76 100644 (file)
@@ -33,8 +33,7 @@ class KbdA11yDialog extends GObject.Object {
                 : _("Slow Keys Turned Off");
             description = _('You just held down the Shift key for 8 seconds. This is the shortcut ' +
                             'for the Slow Keys feature, which affects the way your keyboard works.');
-
-        } else  if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) {
+        } else if (whatChanged & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) {
             key = KEY_STICKY_KEYS_ENABLED;
             enabled = (newFlags & Clutter.KeyboardA11yFlags.STICKY_KEYS_ENABLED) > 0;
             title = enabled
index 5abee0f752bbda76b4578d97a415c35a7ba6a6f1..147e46b2eb94e4b821409df9963ae4ba524212f1 100644 (file)
@@ -205,7 +205,6 @@ var Notebook = GObject.registerClass({
     scrollToBottom(index) {
         let tabData = this._tabs[index];
         tabData._scrollToBottom = true;
-
     }
 
     _onAdjustValueChanged(tabData) {
index 036de7f759719d6219f2872d257ee0211ab31608..7cfe06fd4d352d0e8763fd77f95fb26b04f6b91c 100644 (file)
@@ -1656,7 +1656,6 @@ var ZoomRegion = class ZoomRegion {
 var Crosshairs = GObject.registerClass(
 class Crosshairs extends Clutter.Actor {
     _init() {
-
         // Set the group containing the crosshairs to three times the desktop
         // size in case the crosshairs need to appear to be infinite in
         // length (i.e., extend beyond the edges of the view they appear in).
index a79f87bb4e3041b21e96a3d24c61b780bac728a1..a5b6249c965b89d6bf1411729dd2e6b4a291a05c 100644 (file)
@@ -291,7 +291,6 @@ var LabelExpanderLayout = GObject.registerClass({
             if (child.visible)
                 child.allocate(box);
         }
-
     }
 });
 
index 9ab1cbb9dfae9f175b02dab98669d8acc41c9650..110962259d77544924ed39ec02a7af66cd4307fa 100644 (file)
@@ -673,7 +673,6 @@ var PadOsd = GObject.registerClass({
                 // the same group.
                 this._groupPads.splice(this._groupPads.indexOf(device), 1);
                 this._updatePadChooser();
-
             }
         });
 
index 43fd89db2e4f2780dff3106a55a8878e9cb9e79a..74c02056fefee5344cdcdb5679423d5a14833b57 100644 (file)
@@ -785,7 +785,6 @@ function getInputSourceManager() {
 
 var InputSourceIndicatorContainer = GObject.registerClass(
 class InputSourceIndicatorContainer extends St.Widget {
-
     vfunc_get_preferred_width(forHeight) {
         // Here, and in vfunc_get_preferred_height, we need to query
         // for the height of all children, but we ignore the results
index 3d4acd5b08978c465969017794274a27b389fe03..6b19fad0eca3f0bfdd27953e4438574896d9f844 100644 (file)
@@ -1588,7 +1588,6 @@ var DeviceCategory = class extends PopupMenu.PopupMenuSection {
         this._summaryItem.menu.addSettingsAction(_('Network Settings'),
                                                  'gnome-network-panel.desktop');
         this._summaryItem.hide();
-
     }
 
     _sync() {
index d98355deeba9818d3f0fa6e203106456678e5dbb..e30a4222fa180ef9a9d6dbef4c331234c1af2159 100644 (file)
@@ -77,7 +77,6 @@ var Client = class {
         this.probing = this._proxy.Probing;
         if (this.probing)
             this.emit('probing-changed', this.probing);
-
     }
 
     _onPropertiesChanged(proxy, properties) {
index 5cc4ab2f2c1314f765210ce56059ca87fa3b0b16..b1e2730068f3f810011480e1599d2a37be6b2397 100644 (file)
@@ -487,7 +487,6 @@ var SwitcherList = GObject.registerClass({
             this._scrollToRight(index);
         else if (this._items[index].allocation.x1 - value < 0)
             this._scrollToLeft(index);
-
     }
 
     _scrollToLeft(index) {
index 0f4ed089121e23f5926033cae6f23edd110c206f..4e72779082aebd0de135170e9d8316fb0db4c35f 100644 (file)
@@ -222,7 +222,6 @@ class UserWidget extends St.BoxLayout {
                 opacity: 0,
             });
             this.add_child(this._label);
-
         }
 
         this._updateUser();
index 91b764ea8debdd8c866cf1014d82af1834d58a79..8ea178153bf96cdbf9b51e676c1089b045036f00 100644 (file)
@@ -357,7 +357,6 @@ var WorkspaceTracker = class {
                 workspace._windowAddedId = workspace.connect('window-added', this._queueCheckWorkspaces.bind(this));
                 workspace._windowRemovedId = workspace.connect('window-removed', this._windowRemoved.bind(this));
             }
-
         } else {
             // Assume workspaces are only removed sequentially
             // (e.g. 2,3,4 - not 2,4,7)
@@ -516,7 +515,6 @@ var AppSwitchAction = GObject.registerClass({
     }
 
     vfunc_gesture_progress(_actor) {
-
         if (this.get_n_current_points() == 3) {
             for (let i = 0; i < this.get_n_current_points(); i++) {
                 let [startX, startY] = this.get_press_coords(i);
@@ -526,7 +524,6 @@ var AppSwitchAction = GObject.registerClass({
                     Math.abs(y - startY) > APP_MOTION_THRESHOLD)
                     return false;
             }
-
         }
 
         return true;
index 4613e96ecfe63460e34eb42edbb160f4d93c1ac2..5b65bec8ad9922dd713921095ec69ad30827b014 100644 (file)
@@ -172,7 +172,6 @@ class WorkspaceSwitcherPopup extends St.Widget {
                 indicator = new St.Bin({ style_class: 'ws-switcher-box' });
 
             this._list.add_actor(indicator);
-
         }
 
         let workArea = Main.layoutManager.getWorkAreaForMonitor(Main.layoutManager.primaryIndex);